<section class="home-designer-pieces">
  <%= render partial: 'part_title', locals: { icon: nil, href: nil, title: '设计师作品', summary: 'DESIGNER PIECES' } %>

  <div class="row list">

    <% @design_cases.each do |design_case| %>
    <div class="col-xs-12 col-sm-4 item">
      <a href="<%= designer_design_case_path(design_case.user, design_case) %>" class="item-panel">
           <%= image_tag design_case.design_case_attachments[0].image_url %>
          <div class="designer-panel text-center">
          <%= get_designer_avatar(design_case.user) %>
          <h1 class="name"><%= design_case.user.name %></h1>
          <p><%= design_case.user.position %></p>
        </div>
      </a>
    </div>
    <% end %>

  </div>
</section>
